package com.tnovoselec.android.feed.handler.entity;

import java.util.ArrayList;
import java.util.List;

public class WeatherDto {

    private long id;
    private String title;
    private String url;
    private int position;
    private boolean visible;

    private String conditionString;
    private int temperature;
    private String humidity;
    private String iconUrl;
    private String windDirection;
    private int windSpeed;
    private String windSpeedUnit;

    private List<Forecast> forecast;

    public WeatherDto() {
	super();
	this.forecast = new ArrayList<Forecast>();
    }

    public long getId() {
	return id;
    }

    public void setId(long id) {
	this.id = id;
    }

    public String getTitle() {
	return title;
    }

    public void setTitle(String title) {
	this.title = title;
    }

    public String getUrl() {
	return url;
    }

    public void setUrl(String url) {
	this.url = url;
    }

    public int getPosition() {
	return position;
    }

    public void setPosition(int position) {
	this.position = position;
    }

    public boolean isVisible() {
	return visible;
    }

    public void setVisible(boolean visible) {
	this.visible = visible;
    }

    public String getConditionString() {
	return conditionString;
    }

    public void setConditionString(String conditionString) {
	this.conditionString = conditionString;
    }

    public int getTemperature() {
	return temperature;
    }

    public void setTemperature(int temperature) {
	this.temperature = temperature;
    }

    public String getHumidity() {
	return humidity;
    }

    public void setHumidity(String humidity) {
	this.humidity = humidity;
    }

    public String getIconUrl() {
	return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
	this.iconUrl = iconUrl;
    }

    public String getWindDirection() {
	return windDirection;
    }

    public void setWindDirection(String windDirection) {
	this.windDirection = windDirection;
    }

    public int getWindSpeed() {
	return windSpeed;
    }

    public void setWindSpeed(int windSpeed) {
	this.windSpeed = windSpeed;
    }

    public String getWindSpeedUnit() {
	return windSpeedUnit;
    }

    public void setWindSpeedUnit(String windSpeedUnit) {
	this.windSpeedUnit = windSpeedUnit;
    }

    public List<Forecast> getForecast() {
	return forecast;
    }

    public boolean addForecast(Forecast forecast) {
	return this.forecast.add(forecast);
    }

    public static class Forecast {

	private long id;
	private long cityId;
	private String dayOfWeekString;
	private int temperatureLow;
	private int temperatureHigh;
	private String iconUrl;
	private String conditionString;

	private String dayOfWeekIndex;
	private String conditionIndex;

	public Forecast() {
	    super();
	}

	public long getId() {
	    return id;
	}

	public void setId(long id) {
	    this.id = id;
	}

	public long getCityId() {
	    return cityId;
	}

	public void setCityId(long cityId) {
	    this.cityId = cityId;
	}

	public String getDayOfWeekString() {
	    return dayOfWeekString;
	}

	public void setDayOfWeekString(String dayOfWeekString) {
	    this.dayOfWeekString = dayOfWeekString;
	}

	public int getTemperatureLow() {
	    return temperatureLow;
	}

	public void setTemperatureLow(int temperatureLow) {
	    this.temperatureLow = temperatureLow;
	}

	public int getTemperatureHigh() {
	    return temperatureHigh;
	}

	public void setTemperatureHigh(int temperatureHigh) {
	    this.temperatureHigh = temperatureHigh;
	}

	public String getIconUrl() {
	    return iconUrl;
	}

	public void setIconUrl(String iconUrl) {
	    this.iconUrl = iconUrl;
	}

	public String getConditionString() {
	    return conditionString;
	}

	public void setConditionString(String conditionString) {
	    this.conditionString = conditionString;
	}

	public String getDayOfWeekIndex() {
	    return dayOfWeekIndex;
	}

	public void setDayOfWeekIndex(String dayOfWeekIndex) {
	    this.dayOfWeekIndex = dayOfWeekIndex;
	}

	public String getConditionIndex() {
	    return conditionIndex;
	}

	public void setConditionIndex(String conditionIndex) {
	    this.conditionIndex = conditionIndex;
	}

    }

}
